package tk.djcrazy.instantmessage.domain;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Entity
@Table
public class FriendShip extends BaseBean{
	@ManyToOne(fetch=FetchType.LAZY, optional=false)
	@JoinColumn(name = "master_userEntity_id")
	private UserEntity masterUser;
	@ManyToOne(fetch=FetchType.LAZY, optional=false)
	@JoinColumn(name = "slave_userEntity_id" )
	private UserEntity slaveUser;
	
	private String nickName;

	public UserEntity getMasterUser() {
		return masterUser;
	}

	public void setMasterUser(UserEntity masterUser) {
		this.masterUser = masterUser;
	}

	public UserEntity getSlaveUser() {
		return slaveUser;
	}

	public void setSlaveUser(UserEntity slaveUser) {
		this.slaveUser = slaveUser;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

}
